<!-- 优先级 -->

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>CSS特性-优先级</title>
    <style>
        /* * {
            color: red !important;
        } */

        div {
            color: green;;
        }

        .classselector {
            color: blue;
        }

        #idselector {
            color: orange;
        }
    </style>
</head>
<body>
    <div class="classselector" id="idselector" style="color: purple;">CSS特性-优先级</div>
    <p id="idselector">id测试</p>
</body>
</html>